package com.drinks.yiniang.entity.community;

import com.hansen.library.entity.BaseJson;

import java.util.List;

/**
 * 社区动态
 * @author han
 * @date 2019/12/3
 */
public class CommunityNewsJson extends BaseJson {

    private CommunityNewsData data;

    public CommunityNewsData getData() {
        return data;
    }

    public void setData(CommunityNewsData data) {
        this.data = data;
    }

    public static class CommunityNewsData {
        private List<CommunityNewsList> data;

        public List<CommunityNewsList> getData() {
            return data;
        }

        public void setData(List<CommunityNewsList> data) {
            this.data = data;
        }
    }

    public static class CommunityNewsList {
        //文章ID
        private String id;
        private String fans_id;
        private String title;
        private String content;
        //是否精华
        private String is_essence;
        //点赞数
        private String like_count;
        //收藏数
        private String collect_count;
        //评论总数
        private String comment_count;
        private String is_like;
        private String is_collect;
        private String created_time;
        //话题数组
        private List<String> topic_list;
        private List<CommunityNewsComment> comment;
        private List<CommunityNewsImg> images;
        private List<CommunityNewsGoods> goods;
        //厂商
        private CommunityNewsMfrs brand;
        //文章所属用户信息
        private CommunityNewsUser fans;
        //前端添加字段, 内容是否展示
        private boolean isContentExpand;

        public List<String> getTopic_list() {
            return topic_list;
        }

        public void setTopic_list(List<String> topic_list) {
            this.topic_list = topic_list;
        }

        public List<CommunityNewsComment> getComment() {
            return comment;
        }

        public void setComment(List<CommunityNewsComment> comment) {
            this.comment = comment;
        }

        public List<CommunityNewsImg> getImages() {
            return images;
        }

        public void setImages(List<CommunityNewsImg> images) {
            this.images = images;
        }

        public List<CommunityNewsGoods> getGoods() {
            return goods;
        }

        public void setGoods(List<CommunityNewsGoods> goods) {
            this.goods = goods;
        }

        public CommunityNewsMfrs getBrand() {
            return brand;
        }

        public void setBrand(CommunityNewsMfrs brand) {
            this.brand = brand;
        }

        public CommunityNewsUser getFans() {
            return fans;
        }

        public void setFans(CommunityNewsUser fans) {
            this.fans = fans;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getFans_id() {
            return fans_id;
        }

        public void setFans_id(String fans_id) {
            this.fans_id = fans_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getIs_essence() {
            return is_essence;
        }

        public void setIs_essence(String is_essence) {
            this.is_essence = is_essence;
        }

        public String getLike_count() {
            return like_count;
        }

        public void setLike_count(String like_count) {
            this.like_count = like_count;
        }

        public String getCollect_count() {
            return collect_count;
        }

        public void setCollect_count(String collect_count) {
            this.collect_count = collect_count;
        }

        public String getComment_count() {
            return comment_count;
        }

        public void setComment_count(String comment_count) {
            this.comment_count = comment_count;
        }

        public String getIs_like() {
            return is_like;
        }

        public void setIs_like(String is_like) {
            this.is_like = is_like;
        }

        public String getIs_collect() {
            return is_collect;
        }

        public void setIs_collect(String is_collect) {
            this.is_collect = is_collect;
        }

        public String getCreated_time() {
            return created_time;
        }

        public void setCreated_time(String created_time) {
            this.created_time = created_time;
        }

        public boolean isContentExpand() {
            return isContentExpand;
        }

        public void setContentExpand(boolean contentExpand) {
            isContentExpand = contentExpand;
        }
    }

    public static class CommunityNewsGoods {
        private String id;
        private String community_id;
        private String goods_id;
        private String image_id;
        private String width;
        private String height;
        //横向偏移
        private String x;
        //纵向偏移
        private String y;
        private String name;
        private String en_name;
        //商品状态 1正常 0下架
        private String status;
        private String app_price;
        private String image_url;
        private String recommend_reason;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCommunity_id() {
            return community_id;
        }

        public void setCommunity_id(String community_id) {
            this.community_id = community_id;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getImage_id() {
            return image_id;
        }

        public void setImage_id(String image_id) {
            this.image_id = image_id;
        }

        public String getWidth() {
            return width;
        }

        public void setWidth(String width) {
            this.width = width;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getX() {
            return x;
        }

        public void setX(String x) {
            this.x = x;
        }

        public String getY() {
            return y;
        }

        public void setY(String y) {
            this.y = y;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getApp_price() {
            return app_price;
        }

        public void setApp_price(String app_price) {
            this.app_price = app_price;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getRecommend_reason() {
            return recommend_reason;
        }

        public void setRecommend_reason(String recommend_reason) {
            this.recommend_reason = recommend_reason;
        }
    }

    public static class CommunityNewsImg {
        private String id;
        private String img;
        private String original;
        //private String laravel_through_key;
        //private String name;
        //相关联的商品tag
        private List<CommunityNewsGoodsTag> goods;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getOriginal() {
            return original;
        }

        public void setOriginal(String original) {
            this.original = original;
        }

        public List<CommunityNewsGoodsTag> getGoods() {
            return goods;
        }

        public void setGoods(List<CommunityNewsGoodsTag> goods) {
            this.goods = goods;
        }
    }

    public static class CommunityNewsGoodsTag {
        private String goods_id;
        private String goods_name;
        private String app_price;
        private String width;
        private String height;
        private String x;
        private String y;

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getApp_price() {
            return app_price;
        }

        public void setApp_price(String app_price) {
            this.app_price = app_price;
        }

        public String getWidth() {
            return width;
        }

        public void setWidth(String width) {
            this.width = width;
        }

        public String getHeight() {
            return height;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public String getX() {
            return x;
        }

        public void setX(String x) {
            this.x = x;
        }

        public String getY() {
            return y;
        }

        public void setY(String y) {
            this.y = y;
        }
    }

    public static class CommunityNewsComment {
        //评论ID
        private String id;
        private String community_id;
        private String nickname;
        private String content;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCommunity_id() {
            return community_id;
        }

        public void setCommunity_id(String community_id) {
            this.community_id = community_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }

    public static class CommunityNewsMfrs {
        private String id;
        private String name;
        private String en_name;
        private String logo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getEn_name() {
            return en_name;
        }

        public void setEn_name(String en_name) {
            this.en_name = en_name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }

    public static class CommunityNewsUser {
        private String id;
        private String username;
        private String avatar;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }
}
